﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Core;

namespace BrokerBase.Lib.Product
{
    public enum PeriodConstraintType { None = 0, Equal = 1, LessOrEqual = 2 }
    /// <summary>
    /// 主/附险关联
    /// </summary>
    public interface IRelation:IPK
    {
        PeriodConstraintType PeriodConstraint { get; set; }
        /// <summary>
        /// 强制关联
        /// </summary>
        bool IsForceRelation { get; set; }
        /// <summary>
        /// 付款期约束
        /// </summary>
        bool IsPaymentPeriodEqualBasic { get; set; }
        /// <summary>
        /// 保障期约束
        /// </summary>
        bool IsInsurancePeriodEqualBasic { get; set; }
        /// <summary>
        /// 主险终止，附加险也终止
        /// </summary>
        bool IsTerminationEqualBasic { get; set; }  
        /// <summary>
        /// 是否与主险共享保额
        /// </summary>
        bool IsShareAmount { get; set; }

        IBasicProduct Basic { get; set; }

        IExtraProduct Extra { get; set; }
    }
}
